package com.v9.flow.service;

import com.v9.common.core.service.IAbstractDefaultService;
import com.v9.common.dto.UserDto;
import com.v9.flow.domain.FlowInfo;
import com.v9.flow.domain.FlowSponsor;

import java.util.List;
import java.util.Map;

/**
 * 参数配置 服务层
 *
 * @author
 */
public interface FlowInfoService extends IAbstractDefaultService<FlowInfo>
{
    void deployment(Long id);

    /**
     * 添加工作流
     * @param flowInfo
     * @param sponsors
     */
    void insert(FlowInfo flowInfo, List<FlowSponsor> sponsors);

    void save(FlowInfo info,List<FlowSponsor> sponsors);

    void saveContent(Long id, String data);
    /**
     * 实例化
     * @param code
     * @param user
     * @param formData
     */
    void instance(String code, UserDto user, Map<String, Object> formData);
}
